<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/mytag.jspf"%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<title>用户管理</title>
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" href="assets/css/amazeui.min.css">
<link rel="stylesheet" href="assets/plugins/ztree/zTreeStyle.css">
<link rel="stylesheet" href="assets/css/admin.css">
<script src="assets/js/jquery.min.js"></script>
<script src="assets/plugins/ztree/jquery.ztree.all-3.5.min.js"></script>
<script src="assets/plugins/layer-v1.9.2/layer/layer.js"></script>
<script type="text/javascript">
var setting = {
		view: {
			dblClickExpand: false
		},
		data: {
			simpleData: {
				enable: true
			}
		},
		callback: {
			onClick: function(e, treeId, treeNode) {
				parent.showTreeData(treeNode);//父页面回调
				parent.layer.close(parent.layerPage);
			}
		}
	};

	var zNodes =[
     		<c:forEach items="${shopTrees}" var="m">
     			{id:"${m.id}", pId:"${m.pId}", name:"${m.name}",open:"${m.open}"},
     		</c:forEach>
     	 ];
	
	$(document).ready(function(){
		$.fn.zTree.init($("#shopTree"), setting, zNodes);
	});
</script>
</head>
<body>
	<div id="shopContent">
		<ul id="shopTree" class="ztree" style="margin-top:0; width:160px;"></ul>
	</div>
</body>
</html>
